package string;
//获取字符串的长度
public class LengthDemo {
    public static void main(String[] args) {
        String str="我爱java!";
        int len=str.length();
        System.out.println(len);


        double le=str.length();
        System.out.println(le);

        int a=str.length();
        System.out.println(a);
    }
}
